package com.bing.entity;

import com.bing.utils.idgenertor.IdGen;

import java.util.Date;

/**
 * @Author: Mr.HRL
 * @Description:
 * @Date: 2019-09-24 23:05
 * @Version: 1.0
 */
public class ImageInfo {

    String imageId;
    String productId;
    String imageUrl;
    Date uploadTime;

    public ImageInfo() {

    }

    public ImageInfo(String productId, String imageUrl) {
        this.imageId = IdGen.uuid();
        this.productId = productId;
        this.imageUrl = imageUrl;
        this.uploadTime = new Date();
    }

    public String getImageId() {
        return imageId;
    }

    public void setImageId(String imageId) {
        this.imageId = imageId;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public Date getUploadTime() {
        return uploadTime;
    }

    public void setUploadTime(Date uploadTime) {
        this.uploadTime = uploadTime;
    }
}
